import request from '@/utils/request'

export function getblackList(data) {
  return request({
    url: '/black/list',
    method: 'get',
    params: data
  })
}

export function selectBlackFn(sername){
  return request({
    url:'/black/list?sername=' + sername,
    method: 'get',
  })

}

export function addblackFn(data){
  return request({
    url:'/black/add',
    method: 'post',
    data: data

  })
}

export function deleteBlackFn(id){
  return request({
    url:'/black/del?id=' + id,
    method: 'get',
  })
}
